package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName im_message
 */
@TableName(value ="im_message")
@Data
public class ImMessage implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 删除标识
     */
    @TableField(value = "delete_flag")
    private Boolean deleteFlag;

    /**
     * 修改者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 发送用户Id
     */
    @TableField(value = "from_id")
    private Long fromId;

    /**
     * 接收用户Id
     */
    @TableField(value = "to_id")
    private Long toId;

    /**
     * 已读标识
     */
    @TableField(value = "is_read")
    private Boolean isRead;

    /**
     * 聊天内容
     */
    @TableField(value = "text")
    private String text;

    /**
     * 聊天Id
     */
    @TableField(value = "talk_id")
    private String talkId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}